package com.lijie.bs_recruit.controller;


import com.github.pagehelper.PageInfo;
import com.lijie.bs_recruit.model.User;
import com.lijie.bs_recruit.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 李杰
 * @since 2021-03-15
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @Autowired
    UserService userService;

    //查询所有hr列表
    @RequestMapping("/selUserList/{page}")
    public PageInfo<User> selHrList(@PathVariable Integer page, @RequestBody User user){
        PageInfo<User> positions = userService.selUserPage(page, user);
        return positions;
    }
}

